<!doctype html>
<html>
<head>
	<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
	<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"/>
	<meta name="apple-mobile-web-app-capable" content="yes"/>
	<title>Bidi Mobile test - EdgeToEdgeCategoryList</title>

	<script type="text/javascript" src="../../deviceTheme.js" data-dojo-config="mblThemeFiles: ['base']"></script>
	<script type="text/javascript" src="../../../../dojo/dojo.js" data-dojo-config="async: true, parseOnLoad: true, mblAlwaysHideAddressBar: true,  has: { 'dojo-bidi': true }"></script>

<script type="text/javascript">
		require([
			"dojo/_base/connect",
			"dojo/ready",	
			"dojo/_base/array",
			"dojo/dom",
			"dijit/registry",
			"dojox/mobile/ListItem",
			"dojox/mobile/EdgeToEdgeCategory",				
			"dojox/mobile/parser",
			"dojox/mobile",
			"dojox/mobile/compat",
			"dojox/mobile/Button",
			"dojox/mobile/ScrollableView"
		], function(connect, ready, array, dom, registry){
			
			
			ready(function(){
			
				
				//change label 
				var btnlbl1 = registry.byId("btnLbl");
				btnlbl1.connect(btnlbl1, "onClick", function(){
					registry.byId("category_auto1").set("label", "Start \u05e9\u05dc\u05d5\u05dd!	");	
				        registry.byId("category_auto2").set("label", "\u05e9\u05dc\u05d5\u05dd End!	");			
				});
			
				//change textDir for roundrect List	
				var btn1 = registry.byId("btn1");	
				btn1.connect(btn1, "onClick", function(){
					registry.byId("category1").set("textDir", "ltr");
					
				});	
				
				var btn2 = registry.byId("btn2");	
				btn2.connect(btn2, "onClick", function(){
					registry.byId("category1").set("textDir", "rtl");
					
				});	
					
				var btn3 = registry.byId("btn3");	
				btn3.connect(btn3, "onClick", function(){
					registry.byId("category1").set("textDir", "auto");
				
				});
				
			});
			
			
			
		});
	
	</script>  
</head>
	
<body style="visibility:hidden;">
<div id="group1" data-dojo-type="dojox.mobile.View" data-dojo-props='keepScrollPos:false'><!-- keepScrollPos=false is to improve performance -->
	<div id="view0" data-dojo-type="dojox.mobile.ScrollableView">
	        <h2 data-dojo-type="dojox.mobile.Heading">EdgeToEdgeCategoryList widget</h2>
		<h1 data-dojo-type="dojox.mobile.Heading">dir LTR</h1>	
		<ul data-dojo-type="dojox.mobile.EdgeToEdgeList" >
			<li id="l1" data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"../images/LTR.png", moveTo:"view1"'>Tex Dir LTR</li>
			<li id="l2" data-dojo-type="dojox.mobile.ListItem" data-dojo-props='icon:"../images/RTL.png", moveTo:"view2"'>Tex Dir RTL</li>
			<li id="l3" data-dojo-type="dojox.mobile.ListItem"  data-dojo-props='icon:"../images/auto.png", moveTo:"view3"'>Tex Dir AUTO</li>
		</ul>
		<h1 data-dojo-type="dojox.mobile.Heading">dir RTL</h1>
		<ul data-dojo-type="dojox.mobile.EdgeToEdgeList" >
			<li id="l4" data-dojo-type="dojox.mobile.ListItem"  data-dojo-props='icon:"../images/LTR.png", moveTo:"view4"'>Tex Dir LTR</li>
			<li id="l5" data-dojo-type="dojox.mobile.ListItem"  data-dojo-props='icon:"../images/RTL.png", moveTo:"view5"'>Tex Dir RTL</li>
			<li id="l6" data-dojo-type="dojox.mobile.ListItem"  data-dojo-props='icon:"../images/auto.png", moveTo:"view6"'>Tex Dir AUTO</li>
		</ul>	
	</div>	
	
	
	<div id="view1" data-dojo-type="dojox.mobile.ScrollableView">
		<h1 data-dojo-type="dojox.mobile.Heading" data-dojo-props='back:"Back", moveTo:"view0"'>Dir LTR | textDir LTR</h1>
		
		<h2 data-dojo-type="dojox.mobile.Heading">RoundRectCategoryList</h2>
		<button data-dojo-type="dojox.mobile.Button" id="btn1" class="mblRedButton" data-dojo-props='label:"Set first Category to textDir ltr"'></button>
		<button data-dojo-type="dojox.mobile.Button" id="btn2" class="mblRedButton" data-dojo-props='label:"Set first Category to textDir rtl"'></button>
		<button data-dojo-type="dojox.mobile.Button" id="btn3" class="mblRedButton" data-dojo-props='label:"Set first Category to textDir auto"'></button>		
		<br>
		<h2 data-dojo-type="dojox.mobile.EdgeToEdgeCategory" id="category1" data-dojo-props='textDir:"ltr"'>Hello world!</h2>
		<ul data-dojo-type="dojox.mobile.EdgeToEdgeList">
			<li data-dojo-type="dojox.mobile.ListItem">
				Hello world!
			</li>
			<li data-dojo-type="dojox.mobile.ListItem">
				&#1513;&#1500;&#1493;&#1501; &#1506;&#1493;&#1500;&#1501;!
			</li>
			<li data-dojo-type="dojox.mobile.ListItem">
				Hello &#1506;&#1493;&#1500;&#1501;!
			</li>
			<li data-dojo-type="dojox.mobile.ListItem">
				&#1513;&#1500;&#1493;&#1501; World
			</li>
		</ul>
		
		<h2 data-dojo-type="dojox.mobile.EdgeToEdgeCategory" data-dojo-props='textDir:"ltr"'>&#1513;&#1500;&#1493;&#1501; &#1506;&#1493;&#1500;&#1501;!</h2>
		<ul data-dojo-type="dojox.mobile.EdgeToEdgeList">
			<li data-dojo-type="dojox.mobile.ListItem">
				Hi!
			</li>
			<li data-dojo-type="dojox.mobile.ListItem">
				bye!
			</li>
	
		</ul>
		
		<h2 data-dojo-type="dojox.mobile.EdgeToEdgeCategory" data-dojo-props='textDir:"ltr"'>Hello &#1506;&#1493;&#1500;&#1501;!</h2>
		<ul data-dojo-type="dojox.mobile.EdgeToEdgeList">
			<li data-dojo-type="dojox.mobile.ListItem">
				amir!
			</li>
			<li data-dojo-type="dojox.mobile.ListItem">
				Sasha!
			</li>
	
		</ul>
		
		<h2 data-dojo-type="dojox.mobile.EdgeToEdgeCategory" id="category4" data-dojo-props='textDir:"ltr"'>&#1513;&#1500;&#1493;&#1501; World!</h2>
		<ul data-dojo-type="dojox.mobile.EdgeToEdgeList">
			<li data-dojo-type="dojox.mobile.ListItem">
				Lena!
			</li>
			<li data-dojo-type="dojox.mobile.ListItem">
				Tomer!
			</li>
	
		</ul>
		
			
	
	</div>
	
		
	<div id="view2" data-dojo-type="dojox.mobile.ScrollableView">
		<h1 data-dojo-type="dojox.mobile.Heading" data-dojo-props='back:"Back", moveTo:"view0"'>Dir LTR | textDir RTL</h1>
		
		<h2 data-dojo-type="dojox.mobile.Heading">EdgeToEdgeCategory</h2>
		<h2 data-dojo-type="dojox.mobile.EdgeToEdgeCategory" data-dojo-props='textDir:"rtl"'>Hello world!</h2>	
		<ul data-dojo-type="dojox.mobile.EdgeToEdgeList" data-dojo-props='textDir:"rtl"'>
			<li data-dojo-type="dojox.mobile.ListItem">
				Hello world!
			</li>
			<li data-dojo-type="dojox.mobile.ListItem">
				&#1513;&#1500;&#1493;&#1501; &#1506;&#1493;&#1500;&#1501;!
			</li>
			<li data-dojo-type="dojox.mobile.ListItem">
				Hello &#1506;&#1493;&#1500;&#1501;!
			</li>
			<li data-dojo-type="dojox.mobile.ListItem">
				&#1513;&#1500;&#1493;&#1501; World!
			</li>
		</ul>
		
		<h2 data-dojo-type="dojox.mobile.EdgeToEdgeCategory" data-dojo-props='textDir:"rtl"'>&#1513;&#1500;&#1493;&#1501; &#1506;&#1493;&#1500;&#1501;!</h2>
		<ul data-dojo-type="dojox.mobile.EdgeToEdgeList" data-dojo-props='textDir:"rtl"'>
			<li data-dojo-type="dojox.mobile.ListItem">
				Hi!
			</li>
			<li data-dojo-type="dojox.mobile.ListItem">
				bye!
			</li>
	
		</ul>
		
		<h2 data-dojo-type="dojox.mobile.EdgeToEdgeCategory" data-dojo-props='textDir:"rtl"'>Hello &#1506;&#1493;&#1500;&#1501;!</h2>
		<ul data-dojo-type="dojox.mobile.EdgeToEdgeList" data-dojo-props='textDir:"rtl"'>
			<li data-dojo-type="dojox.mobile.ListItem">
				amir!
			</li>
			<li data-dojo-type="dojox.mobile.ListItem">
				Sasha!
			</li>
	
		</ul>
		
		<h2 data-dojo-type="dojox.mobile.EdgeToEdgeCategory" data-dojo-props='textDir:"rtl"'>&#1513;&#1500;&#1493;&#1501; World!</h2>
		<ul data-dojo-type="dojox.mobile.EdgeToEdgeList" data-dojo-props='textDir:"rtl"'>
			<li data-dojo-type="dojox.mobile.ListItem">
				Lena!
			</li>
			<li data-dojo-type="dojox.mobile.ListItem">
				Tomer!
			</li>
	
		</ul>
		
		
		
	</div>
		
	<div id="view3" data-dojo-type="dojox.mobile.ScrollableView">	
		<h1 data-dojo-type="dojox.mobile.Heading" data-dojo-props='back:"Back", moveTo:"view0"'>Dir LTR | textDir AUTO</h1>
		<h2 data-dojo-type="dojox.mobile.Heading">EdgeToEdgeCategory</h2>
		<br>
		<button data-dojo-type="dojox.mobile.Button" id="btnLbl" >Set new text for two first Categories</button>
		<br>
		<br>
		<h2 data-dojo-type="dojox.mobile.EdgeToEdgeCategory" id="category_auto1" data-dojo-props='textDir:"auto"'>Hello world!</h2>	
		<ul data-dojo-type="dojox.mobile.EdgeToEdgeList" data-dojo-props='textDir:"auto"'>
			<li data-dojo-type="dojox.mobile.ListItem">
				Hello world!
			</li>
			<li data-dojo-type="dojox.mobile.ListItem">
				&#1513;&#1500;&#1493;&#1501; &#1506;&#1493;&#1500;&#1501;!
			</li>
			<li data-dojo-type="dojox.mobile.ListItem">
				Hello &#1506;&#1493;&#1500;&#1501;!
			</li>
			<li data-dojo-type="dojox.mobile.ListItem">
				&#1513;&#1500;&#1493;&#1501; World!
			</li>
		</ul>
		
		<h2 data-dojo-type="dojox.mobile.EdgeToEdgeCategory" id="category_auto2" data-dojo-props='textDir:"auto"'>&#1513;&#1500;&#1493;&#1501; &#1506;&#1493;&#1500;&#1501;!</h2>
		<ul data-dojo-type="dojox.mobile.EdgeToEdgeList" data-dojo-props='textDir:"auto"'>
			<li data-dojo-type="dojox.mobile.ListItem">
				Hi!
			</li>
			<li data-dojo-type="dojox.mobile.ListItem">
				bye!
			</li>
	
		</ul>
		
		<h2 data-dojo-type="dojox.mobile.EdgeToEdgeCategory" data-dojo-props='textDir:"auto"'>Hello &#1506;&#1493;&#1500;&#1501;!</h2>
		<ul data-dojo-type="dojox.mobile.EdgeToEdgeList" data-dojo-props='textDir:"auto"'>
			<li data-dojo-type="dojox.mobile.ListItem">
				amir!
			</li>
			<li data-dojo-type="dojox.mobile.ListItem">
				Sasha!
			</li>
	
		</ul>
		
		<h2 data-dojo-type="dojox.mobile.EdgeToEdgeCategory" data-dojo-props='textDir:"auto"'>&#1513;&#1500;&#1493;&#1501; World!</h2>
		<ul data-dojo-type="dojox.mobile.EdgeToEdgeList" data-dojo-props='textDir:"auto"'>
			<li data-dojo-type="dojox.mobile.ListItem">
				Lena!
			</li>
			<li data-dojo-type="dojox.mobile.ListItem">
				Tomer!
			</li>
	
		</ul>
		
		
		
	</div>	
	 
	 
	<div  id="view4" data-dojo-type="dojox.mobile.ScrollableView">
		<h1 data-dojo-type="dojox.mobile.Heading" data-dojo-props='back:"Back", moveTo:"view0"'>Dir RTL | textDir LTR</h1>
		
		<h2 data-dojo-type="dojox.mobile.Heading">EdgeToEdgeCategory</h2>
		<h2 data-dojo-type="dojox.mobile.EdgeToEdgeCategory" dir=rtl data-dojo-props='textDir:"ltr"'>Hello world!</h2>
		<ul data-dojo-type="dojox.mobile.EdgeToEdgeList">
			<li data-dojo-type="dojox.mobile.ListItem">
				Hello world!
			</li>
			<li data-dojo-type="dojox.mobile.ListItem">
				&#1513;&#1500;&#1493;&#1501; &#1506;&#1493;&#1500;&#1501;!
			</li>
			<li data-dojo-type="dojox.mobile.ListItem">
				Hello &#1506;&#1493;&#1500;&#1501;!
			</li>
			<li data-dojo-type="dojox.mobile.ListItem">
				&#1513;&#1500;&#1493;&#1501; World
			</li>
		</ul>
		
		<h2 data-dojo-type="dojox.mobile.EdgeToEdgeCategory" dir=rtl data-dojo-props='textDir:"ltr"'>&#1513;&#1500;&#1493;&#1501; &#1506;&#1493;&#1500;&#1501;!</h2>
		<ul data-dojo-type="dojox.mobile.EdgeToEdgeList">
			<li data-dojo-type="dojox.mobile.ListItem">
				Hi!
			</li>
			<li data-dojo-type="dojox.mobile.ListItem">
				bye!
			</li>
	
		</ul>
		
		<h2 data-dojo-type="dojox.mobile.EdgeToEdgeCategory" dir=rtl data-dojo-props='textDir:"ltr"'>Hello &#1506;&#1493;&#1500;&#1501;!</h2>
		<ul data-dojo-type="dojox.mobile.EdgeToEdgeList">
			<li data-dojo-type="dojox.mobile.ListItem">
				amir!
			</li>
			<li data-dojo-type="dojox.mobile.ListItem">
				Sasha!
			</li>
	
		</ul>
		
		<h2 data-dojo-type="dojox.mobile.EdgeToEdgeCategory" dir=rtl data-dojo-props='textDir:"ltr"'>&#1513;&#1500;&#1493;&#1501; World!</h2>
		<ul data-dojo-type="dojox.mobile.EdgeToEdgeList">
			<li data-dojo-type="dojox.mobile.ListItem">
				Lena!
			</li>
			<li data-dojo-type="dojox.mobile.ListItem">
				Tomer!
			</li>
	
		</ul>
		
		
			
	</div>
		
	
	
	<div dir="rtl" id="view5" data-dojo-type="dojox.mobile.ScrollableView">
		<h1 data-dojo-type="dojox.mobile.Heading" data-dojo-props='back:"Back", moveTo:"view0"'>Dir RTL | textDir RTL</h1>
		<h2 data-dojo-type="dojox.mobile.Heading">EdgeToEdgeCategory</h2>
		<h2 data-dojo-type="dojox.mobile.EdgeToEdgeCategory" data-dojo-props='textDir:"rtl"'>Hello world!</h2>	
		<ul data-dojo-type="dojox.mobile.EdgeToEdgeList" data-dojo-props='textDir:"rtl"'>
			<li data-dojo-type="dojox.mobile.ListItem">
				Hello world!
			</li>
			<li data-dojo-type="dojox.mobile.ListItem">
				&#1513;&#1500;&#1493;&#1501; &#1506;&#1493;&#1500;&#1501;!
			</li>
			<li data-dojo-type="dojox.mobile.ListItem">
				Hello &#1506;&#1493;&#1500;&#1501;!
			</li>
			<li data-dojo-type="dojox.mobile.ListItem">
				&#1513;&#1500;&#1493;&#1501; World!
			</li>
		</ul>
		
		<h2 data-dojo-type="dojox.mobile.EdgeToEdgeCategory" data-dojo-props='textDir:"rtl"'>&#1513;&#1500;&#1493;&#1501; &#1506;&#1493;&#1500;&#1501;!</h2>
		<ul data-dojo-type="dojox.mobile.EdgeToEdgeList" data-dojo-props='textDir:"rtl"'>
			<li data-dojo-type="dojox.mobile.ListItem">
				Hi!
			</li>
			<li data-dojo-type="dojox.mobile.ListItem">
				bye!
			</li>
	
		</ul>
		
		<h2 data-dojo-type="dojox.mobile.EdgeToEdgeCategory" data-dojo-props='textDir:"rtl"'>Hello &#1506;&#1493;&#1500;&#1501;!</h2>
		<ul data-dojo-type="dojox.mobile.EdgeToEdgeList" data-dojo-props='textDir:"rtl"'>
			<li data-dojo-type="dojox.mobile.ListItem">
				amir!
			</li>
			<li data-dojo-type="dojox.mobile.ListItem">
				Sasha!
			</li>
	
		</ul>
		
		<h2 data-dojo-type="dojox.mobile.EdgeToEdgeCategory" data-dojo-props='textDir:"rtl"'>&#1513;&#1500;&#1493;&#1501; World!</h2>
		<ul data-dojo-type="dojox.mobile.EdgeToEdgeList" data-dojo-props='textDir:"rtl"'>
			<li data-dojo-type="dojox.mobile.ListItem">
				Lena!
			</li>
			<li data-dojo-type="dojox.mobile.ListItem">
				Tomer!
			</li>
	
		</ul>
		
		
		
	</div>	
	
	<div id="view6" data-dojo-type="dojox.mobile.ScrollableView">	
		<h1 data-dojo-type="dojox.mobile.Heading" data-dojo-props='back:"Back", moveTo:"view0"'>Dir RTL | textDir AUTO</h1>		
		<h2 data-dojo-type="dojox.mobile.Heading">EdgeToEdgeCategory</h2>
		<h2 data-dojo-type="dojox.mobile.EdgeToEdgeCategory" dir=rtl data-dojo-props='textDir:"auto"'>Hello world!</h2>	
		<ul data-dojo-type="dojox.mobile.EdgeToEdgeList" dir=rtl data-dojo-props='textDir:"auto"'>
			<li data-dojo-type="dojox.mobile.ListItem">
				Hello world!
			</li>
			<li data-dojo-type="dojox.mobile.ListItem">
				&#1513;&#1500;&#1493;&#1501; &#1506;&#1493;&#1500;&#1501;!
			</li>
			<li data-dojo-type="dojox.mobile.ListItem">
				Hello &#1506;&#1493;&#1500;&#1501;!
			</li>
			<li data-dojo-type="dojox.mobile.ListItem">
				&#1513;&#1500;&#1493;&#1501; World!
			</li>
		</ul>
		
		<h2 data-dojo-type="dojox.mobile.EdgeToEdgeCategory" dir=rtl data-dojo-props='textDir:"auto"'>&#1513;&#1500;&#1493;&#1501; &#1506;&#1493;&#1500;&#1501;!</h2>
		<ul data-dojo-type="dojox.mobile.EdgeToEdgeList" dir=rtl data-dojo-props='textDir:"auto"'>
			<li data-dojo-type="dojox.mobile.ListItem">
				Hi!
			</li>
			<li data-dojo-type="dojox.mobile.ListItem">
				bye!
			</li>
	
		</ul>
		
		<h2 data-dojo-type="dojox.mobile.EdgeToEdgeCategory" dir=rtl data-dojo-props='textDir:"auto"'>Hello &#1506;&#1493;&#1500;&#1501;!</h2>
		<ul data-dojo-type="dojox.mobile.EdgeToEdgeList" dir=rtl data-dojo-props='textDir:"auto"'>
			<li data-dojo-type="dojox.mobile.ListItem">
				amir!
			</li>
			<li data-dojo-type="dojox.mobile.ListItem">
				Sasha!
			</li>
	
		</ul>
		
		<h2 data-dojo-type="dojox.mobile.EdgeToEdgeCategory" dir=rtl data-dojo-props='textDir:"auto"'>&#1513;&#1500;&#1493;&#1501; World!</h2>
		<ul data-dojo-type="dojox.mobile.EdgeToEdgeList" dir=rtl data-dojo-props='textDir:"auto"'>
			<li data-dojo-type="dojox.mobile.ListItem">
				Lena!
			</li>
			<li data-dojo-type="dojox.mobile.ListItem">
				Tomer!
			</li>
	
		</ul>
		
		
	</div>	


</div>
</body>
</html>
